/*
 * @Author: Bo Cai
 * @Mail: caibo0520@qq.com
 * @Date: 2021-12-21 16:49:19
 * @LastEditors: Bo Cai
 * @LastEditTime: 2021-12-22 21:51:16
 */
import request from '@/utils/request'
const api_name = '/edu-service/course-collect'

export default {
    collect(courseId) {
        return request({
            url: `${api_name}/${courseId}`,
            method: 'get',
        })
    },
    checkCollected(courseId) {
        return request({
            url: `${api_name}/isCollected/${courseId}`,
            method: 'get',
        })
    },
    cancelCollect(courseId) {
        return request({
            url: `${api_name}/cancelCollect/${courseId}`,
            method: 'get',
        })
    }
}